package com.xiaoshuidi.cloud.module.iot.dal.model.device;

import com.alibaba.fastjson.JSONObject;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author Sky
 * create 2019/06/04
 * email sky.li@ixiaoshuidi.com
 * 操作第三方设备返回参数封装
 **/
@Data
public class OperateThirdDeviceResponseModel {
    /**
     * 操作结果 ：true 成功，false 失败
     */
    @Schema(description = "操作结果")
    private Boolean operateResult;

    /**
     * 第三方dataJson
     */
    @Schema(description = "第三方dataJson")
    private JSONObject dataJson;

    /**
     * 第三方操作信息
     */
    @Schema(description = "第三方操作信息")
    private String operateMessage;

    /**
     * 密码
     */
    @Schema(description = "密码")
    private String passwordContent;

    /**
     * 设备在线状态 1在线0离线
     */
    @Schema(description = "设备在线状态")
    private Integer onlineStatus;

    /**
     * 门锁电量百分比
     */
    @Schema(description = "门锁电量百分比")
    private Double batteryLevel;
    /**
     * 密码标识
     */
    @Schema(description = "密码标识")
    private String thirdPassId;
    /**
     * 密码状态:0冻结1生效2过期3未生效4执行中5添加失败
     */
    @Schema(description = "密码状态")
    private Integer passwordStatus;
    /**
     * 离线密码激活码
     */
    @Schema(description = "离线密码激活码")
    private String passwordCode;
}
